﻿using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Scan
{
    public partial class frmInputCode : Form
    {
        public frmInputCode()
        {
            InitializeComponent();
        }

        public string ReturnValue
        {
            get
            {
                return textBox1.Text.Trim();
            }
        }



        private void menuItem2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void menuItem1_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(textBox1.Text.Trim()))
            {
                MessageBox.Show("输先输入物流码！");
                return;
            }

            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}